package controllers

import (
	beego "github.com/beego/beego/v2/server/web"
	"myproject/models"
)

type User struct {
	Id       uint
	Username string
	Email    string
}

type AddController struct {
	beego.Controller
}

func (c *AddController) POST() {

	user := c.GetString("username")
	password := c.GetString("password")

	models.DB.Create(&user)

}
